import axios from "./interceptor";
import {get,post,prefix,state} from './api'
export async function getheadmessage() {
    // console.log(prefix)
    let msg;
    await axios.get(prefix+'/getheadmessage').then(res=>{
        msg=res.data
    })
    return msg
}

export async function getusphone() {
    let usphone;
    await axios.get(prefix+'/getusphone').then(res=>{
        usphone=res.data
    })
    return usphone;
}
export async function getnavbarList() {
    let navbarList;
    await axios.get(prefix+'/getnavbarList').then(res=>{
        navbarList=res.data
    })
    return navbarList
}
export async function isUpdateNavlist() {
    let respone;
    await  axios.get(prefix+'/isUpdateNavlist').then(res=>{
        respone=res;
    })
    return respone
}

export async function getsuperstorelist(count) {
        let superstorelist;
      
        await  axios.get(prefix+'/getsuperstorelist?count='+count
        ).then(res=>{
            superstorelist=res.data
        })

        return superstorelist
}